﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace SAR
{
    public partial class GuiDaoCanShu:BasePageClass
    {
      
        public GuiDaoCanShu()
        {
            this.InitializeComponent();
            this.GuiDaoJiSuanRadioBtn.SARIsChecked = true;
            this.GuiDaoGenShuRadioBtn.SARIsChecked = false;
            this.GuidaoJiSuanGrid.Visibility = Visibility.Visible;
            this.GuidaoGenShuGrid.Visibility = Visibility.Hidden;
            this.GuidaoJiSuanTableGrid.Visibility = Visibility.Hidden;
            this.SAR_TableHead.SARIsUnfolded = false;

        }

        private void GuiDaoJiSuanRadioBtn_SAR_RadioBtnChecked(object sender, MouseButtonEventArgs e)
        {
            this.GuidaoJiSuanGrid.Visibility = Visibility.Visible;
            this.GuidaoGenShuGrid.Visibility = Visibility.Hidden;
            this.GuidaoJiSuanTableGrid.Visibility = Visibility.Hidden;
            this.SAR_TableHead.IsEnabled = false;

        }

        private void GuiDaoGenShuRadioBtn_SAR_RadioBtnChecked(object sender, MouseButtonEventArgs e)
        {
            this.GuidaoJiSuanGrid.Visibility = Visibility.Hidden;
            this.GuidaoGenShuGrid.Visibility = Visibility.Visible;
            this.GuidaoJiSuanTableGrid.Visibility = Visibility.Hidden;
            this.SAR_TableHead.IsEnabled = false;

        }

        private void SAR_TableHead_SARClick(object sender, MouseButtonEventArgs e)
        {
            this.GuidaoJiSuanGrid.Visibility = Visibility.Hidden;
            this.GuidaoGenShuGrid.Visibility = Visibility.Hidden;
            this.GuidaoJiSuanTableGrid.Visibility = Visibility.Visible;
        }

        private void SAR_TableHead1_SARClick(object sender, MouseButtonEventArgs e)
        {
            this.GuidaoJiSuanGrid.Visibility = Visibility.Visible;
            this.GuidaoGenShuGrid.Visibility = Visibility.Hidden;
            this.GuidaoJiSuanTableGrid.Visibility = Visibility.Hidden;
        }

        public bool PreClick()
        {


            return true;
        }

        public bool NextClick()
        {
            return true;
        }

        private void sAR_BigButton1_SARBigBtnClick(object sender, MouseButtonEventArgs e)
        {
            this.SAR_TableHead.IsEnabled = true;
            this.GuidaoJiSuanGrid.Visibility = Visibility.Hidden;
            this.GuidaoGenShuGrid.Visibility = Visibility.Hidden;
            this.GuidaoJiSuanTableGrid.Visibility = Visibility.Visible;
        }

    }
}